package com.atmc.service;

import com.atmc.bean.Bill;
import com.atmc.mapper.BillMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BillServiceImpl implements BillService{
    @Autowired
    BillMapper billMapper;
    @Override
    public List<Bill> selectAll() {
        return billMapper.selectAll();
    }

    @Override
    public int insertOne(Bill bill) {
        return billMapper.insertOne(bill);
    }

    @Override
    public int updateOne(Bill bill) {
        return billMapper.updateOne(bill);
    }

    @Override
    public int deleteOne(int id) {
        return billMapper.deleteOne(id);
    }

    @Override
    public Bill selectOne(String goods_name) {
        return billMapper.selectOne(goods_name);
    }
}
